<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>Document</title>
</head>
<body>
	<form action="">
		<table border='1'>
			<tr>
				<td>姓名</td>
				<td>性别</td>
				<td>年龄</td>
				<td>爱好</td>
				<td>操作</td>
			</tr>

			<?php foreach ($arr as $k => $v) { ?>

			<tr <?php if($k==1 ){ echo "bgcolor='red'"; } ?>>

				<td><?php echo $k ?></td>
				<td><?php echo $v['name'] ?></td>
				<td><?php echo $v['age'] ?></td>
				<td><?php echo $v['sex'] ?></td>
				<td><a href="./xianqing.php?id=<?php echo $k ?>">详情</a></td> 
			</tr>

			<?php } ?>
			
		</table>
	</form>
	<form action="./zonglx.php" method="POST">
	    Name:  <input type="text" name="username" placeholder="请输入名字"><br />
	    Email: <input type="text" name="email" placeholder="641166354@qq.com" ><br />
	    <input type="submit" name="submit" value="Submit me!" />
	 	<button><img src="./loga.png" height="20px" width="20px" alt=""></button>
	 	
	</form>
</body>
</html>